home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / GetTextPtr < prev    next >
Text File  |  1995-07-08  |  1KB  |  33 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Icon.GetTextPtr.c
  12.     Author:  Copyright © 1994 Tim Browse
  13.     Version: 1.00 (04 Mar 1994)
  14.     Purpose: Returns a pointer to the indirected text of an icon.
  15.              (It points to the actual text used by the icon; not a copy.)
  16. */
  17.  
  18.  
  19. #include <stdio.h>
  20.  
  21. #include "DeskLib:Wimp.h"
  22. #include "DeskLib:WimpSWIS.h"
  23. #include "DeskLib:Icon.h"
  24.  
  25. char *Icon_GetTextPtr(window_handle window, icon_handle icon)
  26. {
  27.   icon_block iconblk;
  28.  
  29.   Wimp_GetIconState(window, icon, &iconblk);
  30.  
  31.   return iconblk.data.indirecttext.buffer;
  32. }
  33.